package com.health.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 后台管理员表
 * </p>
 *
 * @author sanchuan
 * @since 2023-04-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("admin")
@ApiModel(value = "Admin对象", description = "后台管理员表")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("序号")
      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("账号")
      private String username;

      @ApiModelProperty("密码")
      private String password;


      @ApiModelProperty("昵称")
      private String nickName;

      @ApiModelProperty("姓名")
      private String name;

      @ApiModelProperty("电话")
      private String phone;

      @ApiModelProperty("头像")
      private String avatar;

      @ApiModelProperty("部门ID")
      private Integer departmentId;

      @ApiModelProperty("角色ID")
      private Integer roleId;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;

      @ApiModelProperty("帐号状态(0:正常,1:锁定)")
      private Integer isLook;

      @ApiModelProperty("逻辑删除(0:未删除,1:删除)")
      private Integer isDeleted;
}
